/**
 * 
 */
package tp.pr5.instructions;

import tp.pr5.instructions.exceptions.InstructionExecutionException;

/**
 * @author Mario
 *	This class implements 2 methods so that the instructions that don't need them do not need to implement them
 */
public abstract class UndoAble implements Instruction {
	/**
	 * default constuctor
	 */
	public UndoAble(){
		super();
	}
	/**
	 * sets undoable to false for every instruction that is not undoable
	 */
	public boolean isUndoAble(){
		return false;
	}
	/**
	 * sets the undo method to do nothing on not undoable instructions
	 */
	public void undo() throws InstructionExecutionException{	
	}
}
